using System;
using System.Collections.Generic;
using System.Text;

namespace MCMLXVII.BackEnd.Services.SystemConfiguration.Messages
{

    [Serializable()]
    [System.Xml.Serialization.XmlType(Namespace = "http://tempuri.org/")]
    public class ToolPermissionInfo
    {
        private string _PermissionName;

        public string PermissionName
        {
            get { return _PermissionName; }
            set { _PermissionName = value; }
        }

        private int _PermissionID;

        public int PermissionID
        {
            get { return _PermissionID; }
            set { _PermissionID = value; }
        }

        private bool _Required;

        public bool Required
        {
            get { return _Required; }
            set { _Required = value; }
        }

        public ToolPermissionInfo()
        {

        }

        public ToolPermissionInfo(int PermissionID, string PermissionName, bool Required)
        {
            _PermissionName  = PermissionName;
            _Required = Required;
            _PermissionID = PermissionID;
        }
    }

    
    
    [Serializable()]
    [System.Xml.Serialization.XmlType(Namespace = "http://tempuri.org/")]
    public class msgToolsInfo
    {

        private ToolPermissionInfo[] _Permissions;

        public ToolPermissionInfo[] Permissions
        {
            get { return _Permissions; }
            set { _Permissions = value; }
        } 
        
        private int _ID;

        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private string _Name;

        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }

        public msgToolsInfo()
        {

        }

        public msgToolsInfo(int ID, string Name, ToolPermissionInfo[] Permissions)
        {
            _ID = ID;
            _Name = Name;
            _Permissions = Permissions;
        }
    }
}
